<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <script type="text/javascript" src="/pages/js/jquery.min.js"></script>
    <script type="text/javascript">

        $(function () {
            $("#Admin").click(function () {
                var adminName = $("#Adminname").val(),
                    adminPassword = $("#Adminpassword").val();
                var url = "/admin/login";
                $.post(url, {
                    adminName: adminName,
                    adminPassword: adminPassword
                }, function (result) {
                    if (result.status === 1) {
                        alert("登录成功");
                        window.location.href = "/pages/admin/admin_index.html";
                    }
                    else {
                        alert("登陆失败");
                        window.location.href = "admin.html";
                    }
//                    alert(JSON.stringify(result));
                })
            });
        })
    </script>

    <title> - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">Y</h1>

            </div>
            <h3>壹码当先后台登录</h3>

            <div class="m-t" >
                <div class="form-group">
                    <input id="Adminname" type="text" class="form-control" placeholder="用户名" required="">
                </div>
                <div class="form-group">
                    <input id="Adminpassword" type="password" class="form-control" placeholder="密码" required="">
                </div>
                <button id="Admin" type="submit" class="btn btn-primary block full-width m-b">登 录</button>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>

    
    

</body>

</html>
